﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows;

namespace Domotica.Windows
{
    public static class RectExtender
    {
        public static Rectangle ConvertToRectangle(this Rect rect)
        {
            return new Rectangle((int)rect.Left, (int)rect.Top, (int)rect.Width, (int)rect.Height);
        }
    }


    public static class RectangleExtender
    {
        public static Rect ConvertToRect(this Rectangle rect)
        {
            return new Rect(rect.Left, rect.Top, rect.Width, rect.Height);
        }
    }
}
